package com.nuc.service.impl;

import com.nuc.dao.SpringDao;
import com.nuc.service.SpringService;

public class SpringServiceImpl implements SpringService {
	private SpringDao springDa;
	public SpringServiceImpl(SpringDao springDa){//构造方法
		this.springDa = springDa;
	}
	@Override
	public void save(String str,String age) {
		springDa.save(str,age);
	}
	public void setSpringDa(SpringDao springDa) {//setter实例化
		this.springDa = springDa;
	}
}
